@echo off
echo start build exe
rmdir /S /Q "C:\Users\linjingze\dest\cqyTools"
cd C:\Users\linjingze\IdeaProjects\demo
git pull
call mvn clean package -Dmaven.test.skip=true
echo Checking if build was successful...
if exist .\target (
    echo Build successful. Opening target directory...
    C:\Windows\java\bin\jpackage.exe  --type app-image --input C:\Users\linjingze\IdeaProjects\demo\target --name cqyTools --main-jar demo-1.0-SNAPSHOT.jar --dest C:\Users\linjingze\dest"
	explorer C:\Users\linjingze\dest
) else (
    echo Build failed or target directory does not exist.
)



@echo off
./C:\Users\linjingze\IdeaProjects\demo\db.bat